﻿using FirstFloor.ModernUI.Presentation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelElectCalcModernUI.ViewModel.CalcRes
{

    public class ChartModel
        : NotifyPropertyChanged
    {
        string name;
        double[] value;

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public double[] Value
        {
            get
            {
                if (value == null)
                    value = new double[4];
                return value;
            }

            set
            {
                this.value = value;
            }
        }
        public double Value1
        {
            get { return Value[0]; }
        }
        public double Value2
        {
            get { return Value[1]; }
        }
        public string DisTip
        {
            get;set;
        }
    }
}
